package com.we823.cms.common.web;

import java.util.ArrayList;

import org.springframework.core.convert.converter.Converter;
import org.springframework.core.io.Resource;

public class CustomResourceConverter implements Converter<ArrayList<Resource>, Resource> {

	@Override
	public Resource convert(ArrayList<Resource> source) {
		if (source!=null && source.size()>0) {
			
			return source.get(0);
		}
		return null;
	}

}
